package com.zr.userlogin.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import java.util.Date;

/**
 * Created by jiangping on 2019/7/3.
 */
@Data
public class UserLogin {
    private Integer id;
    @NotBlank(message = "手机号不能为空！")
    private String iphone;
    @NotBlank(message = "用户名不能为空！")
    private String userName;
    @NotBlank(message = "密码不能为空！")
    private String userPwd;
    @NotBlank(message = "验证码不能为空！")
    private String verificationCode;
    @NotBlank(message = "邀请码手机号不能为空！")
    private String invitationCode;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date createTime;
    private String createName;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date updateTime;
    private String updateName;

}
